package com.hdax.dm.base.rest.service;

import com.hdax.dm.api.AreaControllerApi;
import com.hdax.dm.base.service.AreaService;
import com.hdax.dm.entity.base.Area;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RestAreaService implements AreaControllerApi {

    @Autowired
    private AreaService areaService;

    @Override
    public List<Area> areas() {
        return areaService.list();
    }
}
